import os
from dotenv import load_dotenv

load_dotenv()

class Settings:
    # 数据库配置
    MONGODB_URL = os.getenv("MONGODB_URL", "mongodb://localhost:27017")
    DATABASE_NAME = os.getenv("DATABASE_NAME", "ai_social_db")
    
    # Redis配置
    REDIS_URL = os.getenv("REDIS_URL", "redis://localhost:6379/0")
    
    # JWT配置
    SECRET_KEY = os.getenv("SECRET_KEY", "your-secret-key")
    ALGORITHM = "HS256"
    ACCESS_TOKEN_EXPIRE_MINUTES = 30
    
    # AI大模型API配置
    QWEN_API_KEY = os.getenv("QWEN_API_KEY", "")
    WENXIN_API_KEY = os.getenv("WENXIN_API_KEY", "")
    
    # 支付配置
    WECHAT_PAY_MERCHANT_ID = os.getenv("WECHAT_PAY_MERCHANT_ID", "")
    WECHAT_PAY_API_KEY = os.getenv("WECHAT_PAY_API_KEY", "")
    ALIPAY_APP_ID = os.getenv("ALIPAY_APP_ID", "")

settings = Settings()